<%@ page language="java" pageEncoding="utf-8"%>
<%@page import="com.frame.session.UserSession"%>
<%@page import="com.frame.platform.user.SessionOaUser"%>
<%@page import="com.wframe.framework.util.UploadUtil"%>
<%@taglib uri="/WEB-INF/page-base.tld" prefix="w"%>
<%
String path = request.getContextPath();
request.setAttribute("ctx",path);
SessionOaUser sessionUser=UserSession.getAdminUser(request.getSession());
if(sessionUser==null)out.print("<script>window.parent.parent.parent.location.href='"+path+"/platform/index.jsp';</script>");
else{
String userStyle=sessionUser.getStyle();
request.setAttribute("fileserver", UploadUtil.getConfig().getDownserver());
%>

<script>
var ctx="<%=path%>";
var userStyle="<%=userStyle%>";
var fileserver="<%=UploadUtil.getConfig().getDownserver()%>";
</script>
<link rel="stylesheet" type="text/css" href="<%=path %>/util/js/easyui-1.3.3/themes/<%=userStyle %>/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=path %>/util/js/jedate/skin/jedate.css">
<link rel="stylesheet" type="text/css" href="<%=path %>/util/js/toastr/toastr.css">
<link rel="stylesheet" type="text/css" href="<%=path %>/plugins/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="<%=path %>/platform/UI/<%=userStyle %>/css.css">
<script type="text/javascript" src="<%=path %>/util/js/jquery.js"></script>
<script type="text/javascript" src="<%=path %>/util/js/jedate/jquery.jedate.js"></script>
<script type="text/javascript" src="<%=path %>/util/js/toastr/toastr.js"></script>
<script type="text/javascript" src="<%=path %>/util/js/jquery.validate.js"></script>
<script type="text/javascript" src="<%=path %>/util/js/jquery.cookie.js"></script>
<script type="text/javascript" src="<%=path %>/util/js/easyui-1.3.3/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=path %>/util/js/easyui-1.3.3/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
<script type="text/javascript" src="<%=path %>/platform/UI/js/ui.js"></script>
<script>
$(document).keypress(function(e){
    if(e.keyCode==13){
        e.preventDefault();
    }
})
</script>
<%}%>